package com.token.base;

/**
 * 错误
 * @author chenjianxiong  2020/2/15
 */
public class ToKenException extends Exception {
    private static final long serialVersionUID = 1L;
    String errmsg;
    public String getAppDataErrMessage() {
        return errmsg;
    }
    public ToKenException(String errmsg){
        this.errmsg = errmsg;
    }
    public ToKenException(StringBuffer errmsg){
        this.errmsg = errmsg.toString();
    }

    @Override
    public String getMessage() {
        return errmsg;
    }

    public void console(){
        System.out.println("--xxx->"+ errmsg);
    }
}

